package com.small.site;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author  xiaochi
 * @date    2021/11/21 13:38
 * @desc    基础服务提供者
 */
@MapperScan(value = "com.small.site.dao")
@SpringBootApplication
@EnableDiscoveryClient
public class ServerBaseApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(ServerBaseApplication.class,args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        logger.info("----ServerBaseApplication start----");
        return builder.sources(ServerBaseApplication.class);
    }
}
